package com.example.lottery.controller.param;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class FindActivityListParam {
    /**
     * 当前页
     */
    @NotNull
    private Integer currentPage;
    /**
     * 一页总数据条数
     */
    @NotNull
    private Integer pageSize;

    public Integer getParam(){
        return (this.currentPage-1)*pageSize;
    }
}
